package com.example.designpattern.adapter;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public class Translate  implements ChineseSpeaker{
    private EnglishSpeaker englishSpeaker;
    @Override
    public String speakChinese(String english) {
        String s = englishSpeaker.speakEnglish(english);
        s="汉语";
        return s;
    }
}
